<html>
	<head>
		<title>goods Page</title>
		<style type="text/css">
			.clearfix::after {
			    display: block;
			    clear: both;
			    content: "";}
		</style>
	</head>
	<body>
	<div>
	<div style="margin-left: 10p; margin-top: 10px;margin-bottom: 10px;"><a href="http://localhost:9898/addhtml">添加商品</a></div>
	<div style="margin-left: 10p; margin-top: 10px;margin-bottom: 10px;">已上架的商品如下：</div>
	{{range .Goods}}	
		{{if eq .Goodstatus 1}}
		
			<div class="box clearfix" style="border: 1px solid #CCCCCC;padding:10px 15px; " >
				<div style="float:left;"><img src="{{.GoodImg}}" /></div>
				<div style="float: left;">
					<div style="margin-top: 40px;">
						￥{{.Price}}
					</div>
					<div style="margin-top: 100px;">
						{{.GoodName}}
					</div>
				</div>
				<div style="text-align: center; margin-top: 80px; margin-left: 100px;">
					<a style="border: 2px solid olivedrab; padding-left: 20px; padding-right: 20px; padding-top: 10px; padding-bottom: 10px; background: sienna; color: white;" href="http://localhost:9898/delgood?id={{.GoodsId}}&status=0">下架</a>
				</div>
			</div>
		{{end}}	
	{{end}}
	<div style="margin-left: 10p; margin-top: 10px;margin-bottom: 10px;">已下架的商品如下：</div>		
	{{range .Goods}}	
		{{if eq .Goodstatus 0}}
		
			<div class="box clearfix" style="border: 1px solid #CCCCCC;padding:10px 15px; " >
				<div style="float:left;"><img src="{{.GoodImg}}" /></div>
				<div style="float: left;">
					<div style="margin-top: 40px;">
						￥{{.Price}}
					</div>
					<div style="margin-top: 100px;">
						{{.GoodName}}
					</div>
				</div>
				<div style="text-align: center; margin-top: 80px; margin-left: 100px;">
					<a style="border: 2px solid olivedrab; padding-left: 20px; padding-right: 20px; padding-top: 10px; padding-bottom: 10px; background: sienna; color: white;" href="http://localhost:9898/delgood?id={{.GoodsId}}&status=1">上架</a>
				</div>
			</div>
		{{end}}	
	{{end}}
</body>
</html>